/**
 * Project : Looker
 * Author  : solosky
 * File    : WorkPoint.java
 * Date    : 2009-4-7
 * Package : net.looker.schedule
 * Lisence : Apache License 2.0 
 */
package net.looker.monitor.schdule;

import java.util.Date;

import net.looker.work.Work;

/**
 * 任务点
 * 记录了什么时候开始完成任务，工作是什么
 * @author solosky
 *
 */
public class WorkPoint
{
	/**
	 * 工作时间
	 */
	private long time;
	
	/**
	 * 工作任务
	 */
	private Work work;
	
	/**
	 * 构造函数
	 * @param time
	 * @param work
	 */
	public WorkPoint(long time, Work work)
	{
		this.time = time;
		this.work = work;
	}

	/**
	 * 返回时间点
	 * @return long
	 */
	public long getTime()
	{
		return time;
	}

	/**
	 * 返回工作
	 * @return work
	 */
	public Work getWork()
	{
		return work;
	}
	
	
}
